package utils;

// 变形的饿汉式单例，存放全局的锁对象
public class Lock {
    private static Lock stateLock = new Lock();
    private static Lock textLock = new Lock();
    private Lock(){}

    public static Lock getStateLock() {
        return stateLock;
    }

    public static Lock getTextLock() {
        return textLock;
    }
}
